package com.app.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 评论图片表
 * @author 16693103420
 * @since 2024-01-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_comment_file")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CommentFileModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//评价图片表ID
    private String name;//文件名称
    private Integer fileType;// 1 图片  2 视频
    private String url;//文件路径
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;

}
